#!/usr/bin/expect

spawn build/bin/observer -f etc/observer.ini -P cli 
expect "miniob >"
send "drop table t;\r"
expect "miniob >"
send "create table t (id int, d int);\r"
expect "miniob >"
send "create unique index i_id on t(id);\r"
expect "miniob >"
send "insert into t values(1,1);\r"
expect "miniob >"
send "insert into t values(1,2);\r"
expect "miniob >"
interact